<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue绑定事件</title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<input type="button" name="btn" id="btn" @click="vueclick('abc')" :value="vul" />
		</div>
		<script type="text/javascript">
		
			var v=new Vue({
				el:"#app",
				data:{
					num:0,
					vul:"0",
				},
				methods:{
					vueclick:function(str){
						this.num+=1;
						this.vul=str+this.num.toString();
					}
				}
			})
		</script>
	</body>
</html>
